<%--
  Created by IntelliJ IDEA.
  User: 王宇航
  Date: 2023/4/8
  Time: 10:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加商品页面</title>
    <style>
        input{
            width: 300px;
            height: auto;
        }
    </style>
</head>
<body style="text-align: center">
<h1 style="color: aqua">添加商品页面</h1>
<form action="/product/addProduct" method="post" enctype="multipart/form-data">
    <input type="text" name="title" required placeholder="商品名称"><br>
    <textarea name="details" cols="40" rows="5" placeholder="商品详情描述"></textarea><br>
    <input type="number" min="0.00" max="99999.99"  step="0.01" name="orginal_price" placeholder="商品原价"><br>
    <input type="number" min="0.00" max="99999.99"  step="0.01" name="current_price" placeholder="商品当前价格"><br>
    商品类型：
    <select name="type">
        <option value="自营">自营</option>
        <option value="第三方">第三方</option>
    </select>
    <br>
    <input type="file" name="file" required style="margin-left: 200px"><br>
    <br>
    <input type="submit" value="添加">
</form>
<a href="/admin/productList.jsp">返回上一页面</a>
</body>
</html>
